#pragma once
#include "GameObject.h"
#include "StationaryObject.h"

#include "..\..\SGD Wrappers\SGD_Message.h"

class CrumblingPlatformObject : public StationaryObject, public SGD::Message
{
private:
	bool bShaking, bNotDead;
	bool bPlayer;
	float fFallTimer, fFallNow;

public:
	CrumblingPlatformObject();
	virtual ~CrumblingPlatformObject();

	int Update(float dt);
	void Render();

	void HandleCollision(const GameObject* collision);

	// Shaking Getter
	bool GetShaking()const;
	bool GetFallNow()const;

	// Shaking Setter
	void SetShaking(bool shaking);
};

